<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      /* 
      1. i=0; while (0 < 5);i=i+1;console.log(i=1);
      2. i=1; while (1 < 5);i=i+1;console.log(i=2);
      3. i=2; while (2 < 5);i=i+1;console.log(i=3);
      4. i=3; while (3 < 5);i=i+1;console.log(i=4);
      5. i=4; while (4 < 5);i=i+1;console.log(i=5);
      6. i=5; while (5 < 5);
      */
      let i = 0;
      while (i++ < 5) console.log(i);
    </script>
  </body>
</html>
